home *** CD-ROM | disk | FTP | other *** search
/ Dos/V Magazine 1995 October 15 / CD [VMAG951015].bin / _demo / gambo / closet.dxr / 00091.ls < prev    next >
Encoding:
Text File  |  1995-02-13  |  7.0 KB  |  279 lines

  1. on startMovie
  2.   cursor(4)
  3.   puppetSound(0)
  4.   set the timeoutLength to 10 * 60
  5.   set the volume of sound 1 to 200
  6.   set the visible of sprite 48 to 0
  7. end
  8.  
  9. on mIdle
  10.   puppetSprite(48, 1)
  11.   if the timer >= 110 then
  12.     mchangetext()
  13.     startTimer()
  14.     updateStage()
  15.   else
  16.     nothing()
  17.   end if
  18. end
  19.  
  20. on mchangetext
  21.   if the castNum of sprite 48 = 92 then
  22.     set the castNum of sprite 48 to 93
  23.   else
  24.     if the castNum of sprite 48 = 93 then
  25.       set the visible of sprite 48 to 0
  26.       set the castNum of sprite 48 to 94
  27.     else
  28.       set the castNum of sprite 48 to 92
  29.       set the visible of sprite 48 to 1
  30.     end if
  31.   end if
  32. end
  33.  
  34. on mcursorchange
  35.   set a to the mouseCast
  36.   if a = 1 then
  37.     cursor([800, 801])
  38.   else
  39.     if a = 5 then
  40.       cursor([800, 801])
  41.     else
  42.       if a = 9 then
  43.         cursor([800, 801])
  44.       else
  45.         if a = 12 then
  46.           cursor([800, 801])
  47.         else
  48.           if a = 16 then
  49.             cursor([800, 801])
  50.           else
  51.             if a = 32 then
  52.               cursor([800, 801])
  53.             else
  54.               if a = 35 then
  55.                 cursor([800, 801])
  56.               else
  57.                 if a = 49 then
  58.                   cursor([800, 801])
  59.                 else
  60.                   if a = 55 then
  61.                     cursor([800, 801])
  62.                   else
  63.                     if a = 110 then
  64.                       cursor([810, 811])
  65.                     else
  66.                       if a = 111 then
  67.                         cursor([812, 813])
  68.                       else
  69.                         if a = 121 then
  70.                           cursor([814, 815])
  71.                         else
  72.                           if rollOver(1) then
  73.                             cursor([804, 805])
  74.                           else
  75.                             cursor([800, 801])
  76.                           end if
  77.                         end if
  78.                       end if
  79.                     end if
  80.                   end if
  81.                 end if
  82.               end if
  83.             end if
  84.           end if
  85.         end if
  86.       end if
  87.     end if
  88.   end if
  89. end
  90.  
  91. on mshuffle
  92.   set jmpnum to random(21)
  93.   if jmpnum = 1 then
  94.     mchangetext()
  95.     go("LR1")
  96.   else
  97.     if jmpnum = 2 then
  98.       mchangetext()
  99.       go("RL1")
  100.     else
  101.       if jmpnum = 3 then
  102.         mchangetext()
  103.         go("RL1")
  104.       else
  105.         if jmpnum = 4 then
  106.           go("H1")
  107.         else
  108.           if jmpnum = 5 then
  109.             mchangetext()
  110.             go("R1")
  111.           else
  112.             if jmpnum = 6 then
  113.               mchangetext()
  114.               go("L1")
  115.             else
  116.               if jmpnum = 7 then
  117.                 mchangetext()
  118.                 go("DR1")
  119.               else
  120.                 if jmpnum = 8 then
  121.                   mchangetext()
  122.                   go("DL1")
  123.                 else
  124.                   if jmpnum = 9 then
  125.                     go("Rrise")
  126.                   else
  127.                     if jmpnum = 10 then
  128.                       mchangetext()
  129.                       go("DwnR")
  130.                     else
  131.                       if jmpnum = 11 then
  132.                         mchangetext()
  133.                         go("DwnL")
  134.                       else
  135.                         if jmpnum = 12 then
  136.                           mchangetext()
  137.                           go("LR2")
  138.                         else
  139.                           if jmpnum = 13 then
  140.                             mchangetext()
  141.                             go("RL2")
  142.                           else
  143.                             if jmpnum = 14 then
  144.                               mchangetext()
  145.                               go("H2")
  146.                             else
  147.                               if jmpnum = 15 then
  148.                                 mchangetext()
  149.                                 go("DR2")
  150.                               else
  151.                                 if jmpnum = 16 then
  152.                                   mchangetext()
  153.                                   go("DL2")
  154.                                 else
  155.                                   if jmpnum = 17 then
  156.                                     go("RH")
  157.                                   else
  158.                                     if jmpnum = 18 then
  159.                                       go("LH")
  160.                                     else
  161.                                       if jmpnum = 19 then
  162.                                         go("DH1")
  163.                                       else
  164.                                         if jmpnum = 20 then
  165.                                           go("DH2")
  166.                                         else
  167.                                           go("Lrise")
  168.                                         end if
  169.                                       end if
  170.                                     end if
  171.                                   end if
  172.                                 end if
  173.                               end if
  174.                             end if
  175.                           end if
  176.                         end if
  177.                       end if
  178.                     end if
  179.                   end if
  180.                 end if
  181.               end if
  182.             end if
  183.           end if
  184.         end if
  185.       end if
  186.     end if
  187.   end if
  188. end
  189.  
  190. on mpchscore
  191.   global punchcount
  192.   set the visible of sprite 48 to 0
  193.   set the castNum of sprite 48 to 92
  194.   if punchcount = 1 then
  195.     set the visible of sprite 17 to 1
  196.   else
  197.     if punchcount = 2 then
  198.       set the visible of sprite 18 to 1
  199.     else
  200.       if punchcount = 3 then
  201.         set the visible of sprite 19 to 1
  202.       else
  203.         if punchcount = 4 then
  204.           set the visible of sprite 20 to 1
  205.         else
  206.           if punchcount = 5 then
  207.             set the visible of sprite 21 to 1
  208.           else
  209.           end if
  210.         end if
  211.       end if
  212.     end if
  213.   end if
  214. end
  215.  
  216. on timeoutproc
  217.   go("Knife")
  218. end
  219.  
  220. on knifescore
  221.   global knifecount
  222.   if knifecount = 1 then
  223.     set the visible of sprite 32 to 1
  224.   else
  225.     if knifecount = 2 then
  226.       set the visible of sprite 31 to 1
  227.     else
  228.       if knifecount = 3 then
  229.         set the visible of sprite 30 to 1
  230.       else
  231.         if knifecount = 4 then
  232.           set the visible of sprite 29 to 1
  233.         else
  234.           if knifecount = 5 then
  235.             set the visible of sprite 28 to 1
  236.           else
  237.           end if
  238.         end if
  239.       end if
  240.     end if
  241.   end if
  242. end
  243.  
  244. on mhead
  245.   global pchflag, punchcount
  246.   if rollOver(5) then
  247.     if pchflag = 0 then
  248.       set pchflag to 1
  249.       set the mouseDownScript to EMPTY
  250.       set punchcount to punchcount + 1
  251.       mpchscore()
  252.       set the volume of sound 1 to 160
  253.       set the visible of sprite 5 to 0
  254.       set the visible of sprite 6 to 1
  255.       puppetSound("Punch")
  256.       updateStage()
  257.       repeat while soundBusy(1)
  258.       end repeat
  259.       puppetSound(0)
  260.       set the visible of sprite 5 to 1
  261.       set the visible of sprite 6 to 0
  262.       updateStage()
  263.       if punchcount > 4 then
  264.         sound stop 1
  265.         go("Disperse")
  266.       end if
  267.       set the volume of sound 1 to 200
  268.       sound playFile 1, "dorosong.aif"
  269.     end if
  270.   end if
  271.   set the castNum of sprite 48 to 92
  272. end
  273.  
  274. on mplaydone
  275.   cursor(4)
  276.   set the mouseDownScript to EMPTY
  277.   play done
  278. end
  279.